package com.cms.manager.controller;

import com.cms.common.entity.Dept;
import com.cms.manager.service.DeptService;
import com.wswd.common.core.web.domain.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Author: ls
 * @Date: 2021-12-21 8:58
 * @Description: 类文件的简单描述
 */
@RestController
@RequestMapping("/manager")
public class DeptController {

    @Autowired
    private DeptService deptService;

    @GetMapping("/getList")
    public AjaxResult getList() {
        List<Dept> list = deptService.getList();
        return AjaxResult.success(list);
    }

}
